package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Chat;
import cn.wolfcode.trip.base.query.ChatQueryObject;
import java.util.List;
import java.util.Map;

public interface ChatMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Chat record);

    Chat selectByPrimaryKey(Long id);

    List<Chat> selectAll();

    int updateByPrimaryKey(Chat record);

    List<Chat> selectForList(ChatQueryObject qo);


    void updateState(ChatQueryObject qo);

    Map<String,Integer> selectChatNumber(ChatQueryObject qo);

    Integer selectbyFriendId(Long id);
}